import 'package:app/model/app_config.dart';
import 'package:flutter/material.dart';

class ColorCircle extends StatelessWidget {
  static const double defaultSize = 30.0;
  final double width;
  final double height;
  final Color color;

  const ColorCircle({
    super.key,
    required this.color,
    this.width = defaultSize,
    this.height = defaultSize,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      height: height,
      width: width,
      clipBehavior: Clip.antiAlias,
      decoration: BoxDecoration(shape: BoxShape.circle),
      child: Row(
        children: [
          Expanded(
            child: Container(
              color: color.withAlpha(StaticAppConfig.colorAlpha),
            ),
          ),
          Expanded(child: Container(color: color)),
        ],
      ),
    );
  }
}
